package paidaxing.blog.core.service;

/**
 * 文章信息服务接口
 * 用于在不直接依赖blog-post模块的情况下获取文章信息
 */
public interface PostInfoService {
    /**
     * 根据文章ID获取文章信息
     * 
     * @param postId 文章ID
     * @return 文章信息DTO
     */
    PostInfoDTO getPostInfoById(Long postId);
    
    /**
     * 文章信息DTO
     */
    class PostInfoDTO {
        private Long id;
        private String title;
        private String content;
        
        // Getters and Setters
        public Long getId() {
            return id;
        }
        
        public void setId(Long id) {
            this.id = id;
        }
        
        public String getTitle() {
            return title;
        }
        
        public void setTitle(String title) {
            this.title = title;
        }
        
        public String getContent() {
            return content;
        }
        
        public void setContent(String content) {
            this.content = content;
        }
    }
}